<div class="content-box"><!-- Start Content Box -->
    
    <div class="content-box-header">
        
        <h3>Estat&iacute;sticas de pesquisa de oferta</h3>
        
  		<ul class="content-box-tabs">
            <li><a href="#tab1" class="default-tab">Estat&iacute;sticas</a></li> <!-- href must be unique and match the id of target div -->
        </ul>
        
        <div class="clear"></div>
        
    </div> <!-- End .content-box-header -->
    
    <div class="content-box-content">
        
        <div class="tab-content default-tab current" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
            <table>
                <thead>
                    <tr>
                       <th style="width:auto;">Oferta</th>
                       <th style="width:auto;">Estudante que efetuou a pesquisa</th>
                       <th style="width:auto;">Data da consulta</th>
                       <th style="width:auto;">Nº de vezes</th>
                    </tr>
                    
                </thead>
                <tbody>
<?php
foreach ((array)$rsHistoricos as $r) {
	$id = $registro->id_usuarios;

?>
                    <tr>
                        <td><?php echo $r->nome_oferta;?></td>
                        <td><?php echo $r->nome_estudante;?></td>
                        <td><?php echo $r->data;?></td>
                        <td><?php echo $r->total;?></td>
                    </tr>
<?php
}
?>
                </tbody>
            </table>
        </div> <!-- End #tab1 -->
    </div> <!-- End .content-box-content -->
</div> <!-- End .content-box -->
<div class="clear"></div>